Piwik\CronArchive\QueueConsumer B

Total Complexity 99
Dependencies 18
Dependents 1
Total lines 475
Lines of code 322
Logical lines of code 230
Comment lines 112
Methods 21
Properties 17

Methods 21

Method Rating Maintainability Complexity Lines of code
getNextArchivesToProcess()
C
30 25 125
shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress()
A
52 12 22
hasIntersectingPeriod()
A
57 10 15
archiveArrayContainsArchive()
S
64 9 8
getNextInvalidatedArchive()
S
50 7 27
usableArchiveExists()
S
50 6 25
isArchiveNonSegmentAndInProgressArchiveSegment()
S
68 6 6
findSegmentForArchive()
S
57 3 16
canSkipArchiveBecauseNoPoint()
S
59 3 13
isArchiveOfLowerPeriod()
S
66 3 8
addInvalidationToExclude()
S
71 2 6
setMaxSitesToProcess()
S
72 2 6
shouldSkipArchive()
S
72 2 6
getPluginNameForArchiveIfAny()
S
66 2 8
__construct()
S
60 1 13
ignoreIdInvalidation()
S
80 1 3
skipToNextSite()
S
81 1 3
detectPluginForArchive()
S
79 1 3
getNextIdSiteToArchive()
S
81 1 3
getInvalidationDescription()
S
75 1 3
getIdSite()
S
82 1 3